/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAL;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author HOANG ANH
 */
public class DAHelper {

    static String connectionString = "jdbc:sqlserver://localhost:1433;databaseName=KSCUniversity";
    static String username = "sa";
    static String password = "fat123456";

    public static Connection getConnnection() throws ClassNotFoundException, SQLException {
        Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
        Connection con = DriverManager.getConnection(connectionString, username, password);
        return con;
    }
}
